# main.py
import os
import uvicorn
from utils.log_util import setup_logging


def main() -> None:
    # 设置环境变量标识 ASGI 模式
    os.environ["UVICORN_PROCESS"] = "True"
    # 初始化日志系统
    setup_logging()
    uvicorn.run(
        "core.asgi:application",
        host="0.0.0.0",
        port=30001,
        workers=1,
        reload=False,
    )


if __name__ == "__main__":
    main()
